package alp.starcode.framework.database.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanglin
 * @since 2021-10-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("report")
public class Report extends Model<Report> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 举报人id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 被举报人id
     */
    @TableField("reported_id")
    private Integer reportedId;

    /**
     * 举报类型  'user', 'group'
     */
    @TableField("reported_type")
    private Integer reportedType;

    /**
     * 举报内容
     */
    @TableField("content")
    private String content;

    /**
     * 举报分类
     */
    @TableField("category")
    private String category;

    /**
     * 举报状态  'pending', 'refuse', 'agree'
     */
    @TableField("status")
    private Integer status;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_time")
    private Long updateTime;
}
